<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\EduDot */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Edu Dots', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="edu-dot-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => '你确认删除这条记录吗?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'user_id',
            'avatar',
            'room_name',
            'label_one',
            'label_two',
            'label_three',
            'code',
            'parent_code',
            'room_images:ntext',
            'room_teacher:ntext',
            'room_address',
            'gradution_count',
            'gradution_base',
            'video_fee',
            'room_fee',
            'total_fee',
            'put_money',
            'sort',
            'rank',
            'status',
            'create_time:datetime',
            'latitude',
            'longitude',
            'collect_count',
            'collect_base',
            'room_des',
            'show_image:ntext',
            'update_time:datetime',
            'openid',
        ],
    ]) ?>

</div>
